package com.tuanzi.blog.dao;

import com.tuanzi.blog.model.Blog;
import com.tuanzi.blog.model.Type;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Type record);

    int insertSelective(Type record);

    Type selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Type record);

    int updateByPrimaryKey(Type record);

    List<Type> selectAllTypeInfo();

    //根据名字查type
    Type selectByName(@Param("name") String name);

    //修改type类型的总数
    int updateSize(@Param("size") int size,@Param("id") Long id);
}